const path = require("path");
export default {
  methods: {
    useRandomImage() {
      // 获取1-31的随机数
      const random = Math.floor(Math.random() * 31 + 1);
      // 设置后缀
      const suffix = random >= 30 ? "png" : "jfif";
      const randomImageSrc = `https://savethink0711.gitee.io/source/img/homebg/${random}.${suffix}`;

      return randomImageSrc;
    },
  },
};
